<?php
include_once 'Database/Connection.php';
class ModelCreator_ReadFile{
    public function __construct($post) {
        echo $this->readFile($post['file'], $post['project']);
    }
    private function readFile($file, $project){
        $handle = fopen("../models/".$project.DIRECTORY_SEPARATOR.$file, "r");
        $script = fread($handle, 4096);
        $script = str_replace('<?php', "", $script);
        return "<pre>".$script;
       
    }
}
